package com.hxz.pojo;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Autowired;

public class Cat implements BeanNameAware {

    @Autowired
    private Dog dog;
    private Cat(){
        System.out.println("Cat构造方法调用");
    }
    public void shut() {
        System.out.println("miao!");
    }

    public void initMe(){
        System.out.println("Cat初始化方法执行");
    }

    @Override
    public void setBeanName(String name) {
        System.out.println("Cat执行setBeanName aware方法");
    }

    public void des(){
        System.out.println("Cat类的销毁方法调用");
    }


}
